import request from '@/utils/request'

// 查询本科学校招生计划列表
export function listRecruitPlan(query) {
  return request({
    url: '/edu/brecruitPlan/list',
    method: 'get',
    params: query
  })
}

// 查询本科学校招生计划详细
export function getRecruitPlan(planId) {
  return request({
    url: '/edu/brecruitPlan/' + planId,
    method: 'get'
  })
}

// 新增本科学校招生计划
export function addRecruitPlan(data) {
  return request({
    url: '/edu/brecruitPlan',
    method: 'post',
    data: data
  })
}

// 修改本科学校招生计划
export function updateRecruitPlan(data) {
  return request({
    url: '/edu/brecruitPlan',
    method: 'put',
    data: data
  })
}

// 删除本科学校招生计划
export function delRecruitPlan(planId) {
  return request({
    url: '/edu/brecruitPlan/' + planId,
    method: 'delete'
  })
}

// 导出本科学校招生计划
export function exportRecruitPlan(query) {
  return request({
    url: '/edu/brecruitPlan/export',
    method: 'get',
    params: query
  })
}